const merge = require('webpack-merge')
const common = require('./webpack.common')
const path = require("path");

module.exports = merge.default(common, {
    mode: 'development',
    devtool: 'source-map',
    module: {
        rules: [{
            test: /\.css?$/,
            use: ['vue-style-loader', 'css-loader']
        }]
    },
    devServer: {
        hot: true,
        open: true,
        contentBase: path.join(__dirname, './dist'),
        publicPath: '/'
    }
})